home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20030409-20031118
/
000077_fdc@columbia.edu_Tue May 13 17:46:23 EDT 2003.msg
< prev
next >
Wrap
Text File
|
2020-01-01
|
3KB
|
81 lines
Article: 14297 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!news.columbia.edu!news-not-for-mail
From: fdc@columbia.edu (Frank da Cruz)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: making kermit exit to the cmd prompt
Date: 13 May 2003 17:46:03 -0400
Organization: Columbia University
Lines: 64
Message-ID: <b9rp2r$crl$1@watsol.cc.columbia.edu>
References: <pan.2003.05.13.15.46.19.79295.24789@armadillo.itg.ti.com> <pan.2003.05.13.15.49.42.267491.24789@armadillo.itg.ti.com> <b9rm7s$4tv$1@watsol.cc.columbia.edu> <pan.2003.05.13.16.28.20.796869.24852@armadillo.itg.ti.com>
NNTP-Posting-Host: watsol.cc.columbia.edu
X-Trace: newsmaster.cc.columbia.edu 1052862364 8684 128.59.39.139 (13 May 2003 21:46:04 GMT)
X-Complaints-To: postmaster@columbia.edu
NNTP-Posting-Date: 13 May 2003 21:46:04 GMT
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14297
In article <pan.2003.05.13.16.28.20.796869.24852@armadillo.itg.ti.com>,
David Huff <dhuff@armadillo.itg.ti.com> wrote:
: On Tue, 13 May 2003 15:57:32 -0500, Frank da Cruz wrote:
: > It's for use when making connections. Theoretically it should also work
: > when *receiving* connections, but I'm not sure that was ever tried before
: > now. Anyway, why not just put EXIT commands at the appropriate points in
: > your script?
:
: Yeah, tried that:
:
: set <blah, blah> ; set params
: answer ; put in answer mode with no timeout
: exit
:
: Of course, as soon as it answers, it prompts me if it's OK to exit.
:
Well of course at this point you have to add commands after ANSWER that
do what you want done after Kermit answers the phone.
: I believe I can control this prompting behaviuor with SET EXIT
: WARNING.
:
Right...
: But I don't want it to immediately exit after it answers,
: I want it to wait until the other end hangs up. I suppose I could
: just have it PAUSE first:
:
: set <blah, blah> ; set params
: set exit warning off ; don't prompt on exit
: answer ; put in answer mode with no timeout
: pause 10 ; sleep 10 secs
: exit
:
: but that seems, I dunno.. kinda cheesey ;) What I'd like to do is
: replace the 'pause 10' line with something like (pardon the pseudo
: code):
:
: while connected {
: loop
: }
:
So wait, all you want Kermit to do is answer the phone, then wait until
the other side hangs up, then exit? Well that's easy:
answer
if fail exit 1
while > \v(m_sig_cd) 0 { ; Check CD signal.
sleep 1 ; Still there - loop til gone.
}
exit 0
There are other ways too; e.g. you could try defining an ON_CLOSE macro.
The WAIT command would have been perfect; it can be used to wait for
specified modem signals to come on, but currently there is no syntax to
wait for them to go off; I'll add this to my list. Then you could do
something like:
answer
if fail exit 1
wait 0 -cd
exit \v(status)
- Frank